﻿@model IEnumerable<IEstate.Core.Models.Estate>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<link rel="stylesheet" type="text/css" href="~/Content/Style.css" />

<table class="bordered">
    <thead>
        <tr>
            <th>#</th>
            <th>Street</th>
            <th>Bedroms</th>
            <th>Size</th>
            <th>Price</th>
            <th>UID</th>
            <th>Edit</th>
        </tr>
    </thead>
    @foreach (var i in Model)
    {
        <tr>
            <td>@i.EstateID</td>
            <td>@i.Street</td>
            <td>@i.Bedrooms</td>
            <td>@i.Size</td>
            <td>@i.Price</td>
            <td>@i.UID</td>
            <td>@Html.ActionLink("Edit", "Edit", new { id = ++ViewBag.Counter })</td>
        </tr>
    }
</table>

